{% extends "default.html" %}
{% load i18n %}
{% load inbox %}
{% block title %}{% trans "Messages" %}{% endblock %}
{% block page_title %}{% trans "Messages" %}{% endblock %}

{% block column_right %}
<ul>
	{% if user.is_authenticated %}
	<li>
		<div class="box">
			<div class="top">
				<div class="left"></div><div class="right"></div>
				<div class="center">{% trans "Messages" %}</div>
			</div>
			<div class="middle">
			<ul>
				{% inbox_count as my_inbox_count %}
				{% if my_inbox_count == 0 %}
				<li><a href="/pm/inbox/">&raquo;&nbsp;{% trans "Inbox" %}</a></li>
				{% else %}
				<li><a href="/pm/inbox/"><strong>&raquo;&nbsp;{% trans "Inbox" %} ({{ my_inbox_count }})</strong></a></li>
				{% endif %}
				<li><a href="/pm/outbox/">&raquo;&nbsp;{% trans "Sent Messages" %}</a></li>
				<li><a href="/pm/compose/">&raquo;&nbsp;{% trans "New Message" %}</a></li>
				<li><a href="/pm/trash/">&raquo;&nbsp;{% trans "Trash" %}</a></li>
				<br class="clear"/>
			</ul>
			</div>
			<div class="bottom">
				<div class="left"></div><div class="right"></div><div class="center"></div>
			</div>
		</div>
		<br class="clear" />
	</li>
	{% endif %}

</ul>
{% endblock column_right %}

{% block page_content %}
<div class="box">
			
	<div class="notop">
		<div class="left"></div>
		<div class="right"></div>
		<div class="center"></div>
	</div>
	
	<div class="middle">
		{% block pm_content %}{% endblock pm_content %}
	</div>
	
	<div class="bottom">
		<div class="left"></div>
		<div class="right"></div>
		<div class="center"></div>
	</div>
</div>
	
{% endblock page_content %}

